import UIKit

//
@available(iOS 2.0, *)
extension QKC where AA :UIToolbar {
		// default is UIBarStyleDefault
    open func barStyle_qk_s(_ barStyle:  UIBarStyle ) -> QKC<AA,YY,ZZ, UIBarStyle >{
		return link(next: barStyle).then_QK { $0.value.barStyle = barStyle }
	}
    open func barStyle_qk_g() -> QKC<AA,YY,ZZ, UIBarStyle >{
		 self +^ self.value.barStyle
	}

		// get/set visible UIBarButtonItem. default is nil. changes not animated. shown in order
    open func items_qk_s(_ items:  [UIBarButtonItem]? ) -> QKC<AA,YY,ZZ, [UIBarButtonItem]? >{
		return link(next: items).then_QK { $0.value.items = items }
	}
    open func items_qk_g() -> QKC<AA,YY,ZZ, [UIBarButtonItem]? >{
		 self +^ self.value.items
	}

		// Default is NO on iOS 6 and earlier. Always YES if barStyle is set to UIBarStyleBlackTranslucent
    @available(iOS 3.0, *)
    open func isTranslucent_qk_s(_ isTranslucent:  Bool ) -> QKC<AA,YY,ZZ, Bool >{
		return link(next: isTranslucent).then_QK { $0.value.isTranslucent = isTranslucent }
	}
    @available(iOS 3.0, *)
    open func isTranslucent_qk_g() -> QKC<AA,YY,ZZ, Bool >{
		 self +^ self.value.isTranslucent
	}

    open func tintColor_qk_s(_ tintColor:  UIColor) -> QKC<AA,YY,ZZ, UIColor>{
		return link(next: tintColor).then_QK { $0.value.tintColor = tintColor }
	}
    open func tintColor_qk_g() -> QKC<AA,YY,ZZ, UIColor>{
		 self +^ self.value.tintColor
	}

		// default is nil
    @available(iOS 7.0, *)
    open func barTintColor_qk_s(_ barTintColor:  UIColor? ) -> QKC<AA,YY,ZZ, UIColor? >{
		return link(next: barTintColor).then_QK { $0.value.barTintColor = barTintColor }
	}
    @available(iOS 7.0, *)
    open func barTintColor_qk_g() -> QKC<AA,YY,ZZ, UIColor? >{
		 self +^ self.value.barTintColor
	}

	/// Describes the appearance attributes for the toolbar to use when it is displayed with its standard height.
    @available(iOS 13.0, *)
     open func standardAppearance_qk_s(_ standardAppearance:  UIToolbarAppearance) -> QKC<AA,YY,ZZ, UIToolbarAppearance>{
		return link(next: standardAppearance).then_QK { $0.value.standardAppearance = standardAppearance }
	}
    @available(iOS 13.0, *)
     open func standardAppearance_qk_g() -> QKC<AA,YY,ZZ, UIToolbarAppearance>{
		 self +^ self.value.standardAppearance
	}

	/// Describes the appearance attributes for the toolbar to use when it is displayed with its compact height. If not set, the standardAppearance will be used instead.
    @available(iOS 13.0, *)
     open func compactAppearance_qk_s(_ compactAppearance:  UIToolbarAppearance?) -> QKC<AA,YY,ZZ, UIToolbarAppearance?>{
		return link(next: compactAppearance).then_QK { $0.value.compactAppearance = compactAppearance }
	}
    @available(iOS 13.0, *)
     open func compactAppearance_qk_g() -> QKC<AA,YY,ZZ, UIToolbarAppearance?>{
		 self +^ self.value.compactAppearance
	}

		// You may not set the delegate when the toolbar is managed by a UINavigationController.
    @available(iOS 7.0, *)
     open func delegate_qk_s(_ delegate:  UIToolbarDelegate? ) -> QKC<AA,YY,ZZ, UIToolbarDelegate? >{
		return link(next: delegate).then_QK { $0.value.delegate = delegate }
	}
    @available(iOS 7.0, *)
     open func delegate_qk_g() -> QKC<AA,YY,ZZ, UIToolbarDelegate? >{
		 self +^ self.value.delegate
	}

		// will fade in or out or reorder and adjust spacing
    open func setItems_qk_f(_ items: [UIBarButtonItem]?, animated: Bool) -> QKC<AA,YY,ZZ, [UIBarButtonItem]?>{
		 self +^ self.value.setItems(items, animated:animated) +^ items
	}

    @available(iOS 5.0, *)
    open func setBackgroundImage_qk_f(_ backgroundImage: UIImage?, forToolbarPosition topOrBottom: UIBarPosition, barMetrics: UIBarMetrics) -> QKC<AA,YY,ZZ, UIImage?>{
		 self +^ self.value.setBackgroundImage(backgroundImage, forToolbarPosition:topOrBottom, barMetrics:barMetrics) +^ backgroundImage
	}

    @available(iOS 5.0, *)
    open func backgroundImage_qk_f(forToolbarPosition topOrBottom: UIBarPosition, barMetrics: UIBarMetrics) -> QKC<AA,YY,ZZ,UIImage?>{
		 self +^ self.value.backgroundImage(forToolbarPosition:topOrBottom, barMetrics:barMetrics)
	}

    @available(iOS 6.0, *)
    open func setShadowImage_qk_f(_ shadowImage: UIImage?, forToolbarPosition topOrBottom: UIBarPosition) -> QKC<AA,YY,ZZ, UIImage?>{
		 self +^ self.value.setShadowImage(shadowImage, forToolbarPosition:topOrBottom) +^ shadowImage
	}

    @available(iOS 6.0, *)
    open func shadowImage_qk_f(forToolbarPosition topOrBottom: UIBarPosition) -> QKC<AA,YY,ZZ,UIImage?>{
		 self +^ self.value.shadowImage(forToolbarPosition:topOrBottom)
	}

}

